package com.wm.dao;

import java.util.List;

import com.wm.bean.Restaurant;
import com.wm.bean.User;

import cn.itcast.bean.Person;

public interface UserDao {

/*	public void save(Restaurant restaurant);

	public void update(Restaurant restaurant);

	public Person getPerson(Integer restaurantid);

	public void delete(Integer restaurantid);

	public List<Restaurant> getRestaurants(int beginNum, int maxResults);

	public int getRestPages(int maxResults);

	public List<Restaurant> getRestaurantsByName(int beginNum, int maxResults,
			List<String> names);
	public int getRestPagesWithHql(int maxResults, String hql);
	
	public List<Restaurant> getRestaurantsByNameHql(int beginNum, int maxResults, String hql);
	
	public List<Restaurant> searchShop(String hql);*/
	public void save(User user);
	public User getUser(int userid);
	public List<User> getUserByName(String name);
	public List<User> getUserByHql(String hql);
}